package com.tduck.cloud.api.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author ling
 * @date 2023-04-05 11:33
 */
public class DateUtils {
    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");

    public static String getCurrentDate() {
        Date date = new Date();
        return DATE_FORMAT.format(date);
    }

    public static void main(String[] args) {
        System.out.println(getCurrentDate());
    }
}
